package com.guodi.map.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @描述：地图数据源表
 * @作者: 代鹏刚
 * @日期: 2019-12-20
 */
@Data
@ApiModel(value="地图数据源表")
public class ApiMapDataSource implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "数据源名称不能为空")
    @ApiModelProperty(value = "数据源名称",required = true)
    private String name;

//    @NotBlank(message = "数据源类型")
    @ApiModelProperty(value = "ArcGIS Server 数据源：datasource_server_arcgis ，Oracle SDE数据源：datasource_type_sde，在线服务数据源  ：datasource_server_oneline",required = true)
    private String sourceType;

    @NotBlank(message = "数据源链接地址不能为空")
    @ApiModelProperty(value = "数据源链接地址",required = true)
    private String sourceUrl;

    @NotBlank(message = "软件类型不能为空")
    @ApiModelProperty(value = "软件类型",required = true)
    private String softwareType;

    @NotBlank(message = "数据源所属部门不能为空")
    @ApiModelProperty(value = "数据源所属部门",required = true)
    private String orgId;

    @ApiModelProperty(value = "数据源用户名")
    private String userName;

    @ApiModelProperty(value = "数据源用户密码")
    private String password;
}
